package com.example.demo.model;/*
 * Copyright © 2020-2035 erupt.xyz All rights reserved.
 * Author: YuePeng (erupts@126.com)
 */

import javax.persistence.*;
import xyz.erupt.annotation.*;
import xyz.erupt.annotation.sub_erupt.*;
import xyz.erupt.annotation.sub_field.*;
import xyz.erupt.annotation.sub_field.sub_edit.*;
import xyz.erupt.upms.model.base.HyperModel;
import xyz.erupt.jpa.model.BaseModel;
import java.util.Set;
import java.util.Date;

@Erupt(name = "课程信息")
@Table(name = "class_info")
@Entity
public class Classinfo extends BaseModel {

        @EruptField(
                views = @View(
                        title = "class_id课程"
                ),
                edit = @Edit(
                        title = "class_id课程",
                        type = EditType.NUMBER, search = @Search, notNull = true,
                        numberType = @NumberType
                )
        )
        private Integer class_id;

        @EruptField(
                views = @View(
                        title = " 课程名称"
                ),
                edit = @Edit(
                        title = " 课程名称",
                        type = EditType.INPUT, search = @Search, notNull = true,
                        inputType = @InputType
                )
        )
        private String class_name;

        @EruptField(
                views = @View(
                        title = "课程学分"
                ),
                edit = @Edit(
                        title = "课程学分",
                        type = EditType.NUMBER, search = @Search, notNull = true,
                        numberType = @NumberType
                )
        )
        private Integer class_credit;

        public Integer getClass_id() {
                return class_id;
        }

        public void setClass_id(Integer class_id) {
                this.class_id = class_id;
        }

        public String getClass_name() {
                return class_name;
        }

        public void setClass_name(String class_name) {
                this.class_name = class_name;
        }

        public Integer getClass_credit() {
                return class_credit;
        }

        public void setClass_credit(Integer class_credit) {
                this.class_credit = class_credit;
        }
}